home *** CD-ROM | disk | FTP | other *** search
Wrap
import com.extensibility.esc.ESCApplication; import com.extensibility.rock.Platform; import com.extensibility.util.Debug; import javax.swing.JFrame; import javax.swing.JOptionPane; public class ESC { private static ESCApplication consoleApp = null; private static ESCApplication oneAndOnly = null; public static void main(String[] var0) { oneAndOnly = new ESCApplication(); consoleApp = oneAndOnly; try { oneAndOnly.startup(); oneAndOnly.doArgs(var0); } catch (RuntimeException var3) { JOptionPane.showMessageDialog(new JFrame(), Platform.mapNewlinesForTextArea(Debug.getStackTrace(var3))); ((Throwable)var3).printStackTrace(); System.err.flush(); System.exit(0); } catch (Throwable var4) { String var2 = Platform.mapNewlinesForTextArea(String.valueOf(String.valueOf(var4.toString()).concat(String.valueOf(System.getProperty("line.separator")))).concat(String.valueOf("Application must now exit."))); JOptionPane.showMessageDialog(new JFrame(), var2); var4.printStackTrace(); System.err.flush(); System.exit(0); } } public static void openFiles(String[] var0) { if (oneAndOnly != null) { consoleApp.openDocumentList(var0); } } }